package com.gaofans.vertx.boot.web.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * 全局异常处理的声明
 * @author GaoFans
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Component
public @interface ExceptionAdvice {

    @AliasFor("patterns")
    String[] value() default {"/**"};

    /**
     * 匹配的路由路径
     * @return
     */
    @AliasFor("value")
    String[] patterns() default {"/**"};
}
